Search Results: "Antti-Juhani Kaijanaho"

11 June 2007

Antti-Juhani Kaijanaho: Nixforce, cease and desist

Update Amazingly, they seem to have complied with this notice by taking down my content :) Nixforce, you are republishing (parts of) my blog without permission, and without indicating that you are republishing stuff written elsewhere. You are required to do all of the following, or cease and desist from republishing my content: If you do both, you have my permission to continue republishing my content. Additionally, you should verify that you have the legal right to republish content by the other authors. (This has been mailed to their contact email address.)

Antti-Juhani Kaijanaho: Recursion that isn t

Joey’s recent post reminded me of the old joke about an entry in a dictionary:
recursion see recursion
Non-geeks can stop reading here: if you didn’t understand the joke, you won’t understand what’s coming next either. I mean, sure it’s a funny joke, but it doesn’t quite work. Technically, it’s not even an example of recursion, as the base case is missing. Perhaps it’s co-recursion? — but it isn’t, as it’s not progressing. Why can’t we say instead,
recursion if you do not understand it, see recursion
It would still be funny, and it might actually work.

5 June 2007

Antti-Juhani Kaijanaho: Book selections

A friend recommended me Steve Miller and Sharon Lee’s Liaden books. The first question, reading order, was not very easy to find an answer to. I went with publication order within the Agent of Change sequence – Agent of Change, Conflict of Honors, Carpe Diem, Plan B, and I Dare. In retrospect it would have been better to start with Conflict of Honors followed by Agent of Change, as this corresponds to story chronology, and AoC and CD have the same protagonists while CoH doesn’t. The story speed between Plan B and I Dare was too fast to break the sequence, but it might have made the latter book fuller if I had read the first batch of prequels Local Custom and Scout’s Progress before it. The second prequel sequence Crystal Soldier and Crystal Dragon works well at any point in the series, as does the third (single-book) prequel sequence Balance of Trade. I’m still reading Fledgling and the first short story collection. Confusing? I thought so, but it definitely is worth the investment. Instead of all the usual superlatives, I’ll say something unique to this series: These books changed my perspective in that I now cannot read (in any fiction) about a character bowing without asking in my head “in which mode, dammit!?”. (Update on 8th June: The friend referred to above, after reading this section, said (I paraphrase): “In the peculiar mode of humans, of course”.) The Liaden books are romances in a (very good) science-fictional setting. With two exceptions, each book creates at least one new lifetime romantic pairing, and they’re in my opinion convincing romances. One of the exceptions deepens one of the earlier relationships, so there is no lack of romance there. The only place I know where one can get all the novels reliably is Webscriptions, as e-books. Some of the paper books seem to be hard to find, and the recent closing down of the main publisher Meisha Merlin cannot help there. * * * The promotional material for The Mote in God’s Eye by Larry Niven and Jerry Pournelle includes a quote by Robert Heinlein: Possibly the finest science fiction novel I have ever read. It is hard for me to disagree with that statement (including the qualifier, in all honesty), having recently read this book. Mote is a complex first-contact story, set in Pournelle’s alternate history (originally future history) universe. It begins in the year 3017. The recently created Second Empire of Man gets a visit from the aliens, leading to a counter-visit by humans to the aliens’ star system. The aliens seem friendly, but are they? What could they possibly be hiding? In retrospect, the Moties remind me (in style, not in detail) of Orson Scott Card’s Piggies (Speaker for the Dead and sequels); I would be surprised if Card had not read this book before writing his. The sequel, The Gripping Hand is not the masterpiece that Mote is, but I had no trouble enjoying it. The solution to the Motie problem has held for decades, but it won’t hold forever, and it might actually be breaking down now. The mission: save both humans and Moties from an eventual assured mutual destruction. * * * I actually started reading Pournelle’s alternate/future history from the cronological beginning. This is another series where reading order becomes a complicated matter, as many of the books tell parallel subthreads of the story; and it becomes even more complicated by the fact that there is an omnibus edition in which the story is told in chronological order, this having been accomplished by breaking the books down into chunks and then arranging the chunks in chronological order. My reading order went as follows: West of Honor, The Mercenary, Prince of Mercenaries, Go Tell the Spartans and Prince of Sparta. This is a good reading order; my only problem with it is that the protagonist of West of Honor fails to appear in most of the other books. The following is not in my opinion a real spoiler, even though it reveals certain key events of the series. The premise is that sometime between the 1970’s and the early decades of the 21st Century the United States and the Soviet Union form a union, called the CoDominium, which dominates the international politics of the Earth for most of the 21st Century. In early 21st Century, faster-than-light travel is discovered, and the CoDominium starts to colonise other star systems, first with voluntary colonists and then with convicts and involuntary colonists. The series takes place in the final decades of CoDominium, and focuses on the actions of one John Christian Falkenberg (though he is not the protagonist of all the books), first as an officer in the CoDominium (extraterrestrial) military, and then as the Colonel of a mercenary outfit, Falkenberg’s Legion. The Legion is at the center of events that eventually (after the events described in these books) leads to the creation of the first Empire of Man. The books are entertaining military science fiction, solid, enjoyable journeyman pieces.

1 June 2007

Antti-Juhani Kaijanaho: Everybody has their own conference management software

… or at least it feels that way. I just ran into Edd Dumbill’s post on Expectnation, and I just last week helped grade a master’s thesis on the application of Petri Nets to investigating the correctness of another conference management software written at my University (a thesis that I had co-advised). I seem to recall reading about a couple of others.

31 May 2007

Antti-Juhani Kaijanaho: Announcing darcs-monitor 0.3.1

Darcs-monitor will send email to a specified recipient about new changes added to a specific darcs repository. It can be run as an apply posthook (resulting in near-instantaneous push emails), or periodically from Cron, or occasionally by hand, whatever seems most convenient. This new release (0.3) contains the following changes: The minor update 0.3.1 brings the documentation up to date. Benja Fallenstein and Benjamin Franksen provided some of the features and bug fixes in this release. My thanks to them :) You can get it by darcs at http://antti-juhani.kaijanaho.fi/darcs/darcs-monitor/ (darcsweb
available
), or as a tarball at http://antti-juhani.kaijanaho.fi/software/dist/. It depends on mtl and
HaXml and is written in Haskell, naturally. It has been tested only with GHC 6.6 so far. For installation and usage instructions, refer to the README at any of the locations above. Please note that this software is very new and thus can be buggy. As with any email-sending software, bugs can result in major annoyance; user caution is warranted.

6 May 2007

Antti-Juhani Kaijanaho: Serendipity breaks an important Internet standard and is proud of it

Originally posted on 2006-04-16. Clarification 2006-04-19: The misfeature discussed below applies to feeds only, as far as I know, not to regular HTML serving. Update 2007-05-06: I have just learned that the option in question is Activate strict RFC2616 RSS-Feed compliance. I have no idea when it was added. While investigating (wearing my hat as the Planet Haskell editor/technician) John Goerzen’s Planet floods, I stumbled on a very strange misfeature in Serendipity. A HTTP/1.1 client can ask a server to send a file over only if the file has been modified since some date. What Serendipity does is send only those entries dated after the provided timestamp. Now, this might seem like a triviality, but it isn’t. The HTTP/1.1 feature is there to make proxy caching work. It is very important for caching that the file sent is the same, regardless whether the request is “since this timestamp”, or a regular request. Serendipity’s behaviour breaks this very important caching invariant! What’s more is that Serendipity’s developers seem rather proud of this misfeature. While the feature this misuse of HTTP/1.1 is intended to create is certainly useful, it should be implemented as a separate mechanism, and not by misusing HTTP/1.1 caching! (A separate protocol is probably necessary, perhaps specifying a URI query syntax for this is enough; obviously, one needs to get the aggregators to support this.) Serendipity will apparently have a configuration option to fix this, but it will be off by default. Serendipity users, upgrade (as soon as it is possible) and mark that option On, to remain compatible with the rest of the Internet.

10 April 2007

Antti-Juhani Kaijanaho: Looking for dctrl-tools testcases

If you use grep-dctrl, sort-dctrl or tbl-dctrl, I’d like to see your use cases! I’m building a system test automaton for dctrl-tools, and I’d like to include as much real-world examples as possible so that any regressions get found before uploading. You can send example command lines (and preferably also a test file, unless it’s one of the standard Debian files like Packages) to me by email at <ajk@debian.org>, as a wishlist bug report against dctrl-tools or by a Darcs patch against the experimental repository (see instructions).

8 April 2007

Antti-Juhani Kaijanaho: dctrl-tools 2.10

Just uploaded to Debian experimental. New features: grep-dctrl -I, tbl-dctrl -H

6 April 2007

Antti-Juhani Kaijanaho: Christopher Anvil: Cantor s War

I’ve been reading Baen’s collections of Christopher Anvil’s classic sf stories. In general, I’ve found them excellent; I thoroughly enjoyed the Free Library book Interstellar Patrol; and I’ve enjoyed all the stories of Interstellar Patrol II: The Federation of Humanity that I’ve read so far – with the exception of one. I agree completely with Alex Kasman of MathFiction: In my opinion, this story is slanderous and the author should be ashamed. I have very little to add to his review, and I won’t repeat his points here. I recommend reading the whole of Kasman’s review. On my first reading I totally missed that Dr. Phipps had been identified as a mathematician; I couldn’t believe my eyes when I went back and checked. A mathematician of the future, who is that ignorant of elemental set theory? The stuff is hammered down the throat of every mathematics freshman everywhere. It might be possible to graduate with that sort of ignorance, and I might accept it from a scientist who is not a mathematician, but to get a maths doctorate? No way. Fine, so we suspend disbelief on that point. The good Doctor is a professional imbecile. When he uses his faulty understanding of Cantor’s Theorem to suggest a plan of attack against the bad guys, I expected it to fail, naturally. I expected the bad guys to somehow diagonalize themselves additional warships, and so prove that their number is actually uncountable, when the good guys have just a countably infinite set of ships. But did we get this? No. Go read Kasman’s review, and the Anvil reissues. But by heavens, if you are educated in higher maths, skip Cantor’s War.

28 March 2007

Antti-Juhani Kaijanaho: Charlie Stross: Why the commercial ebook market is broken

Charlie Stross: Why the commercial ebook market is broken
In the pre-internet dark age, there was a subculture of folks who would get their hands on books and pass them around and encourage people to read them for free, rather than buying their own copies. Much like today’s ebook pirates, in terms of the what they did (with one or two minor differences). There was a closely-related subculture who would actually sell copies of books without paying the authors a penny in royalties, too. We have a technical term for such people: we call them “librarians” and “second-hand bookstore owners”.

8 March 2007

Antti-Juhani Kaijanaho: My candidate

The Finnish parliamentary elections are very soon. I kinda like my candidate’s flyer (no, I did not take part in its design): The text reads: Geek to Parliament! Basic rights must be preserved on the Internet and elsewhere. Technology for nature and people. What is the fate of MP3?

11 February 2007

Antti-Juhani Kaijanaho: Announcing darcs-monitor

There aren’t many features I grew fond of with CVS that I haven’t yet found a satisfactory solution for in Darcs. One of them was, until today, sending commit mails to mailing lists. There are a number of more or less ugly hacks floating around the net, but I never found them very satisfactory, so I wrote my own. Darcs-monitor will send email to a specified recipient about new changes added to a specific darcs repository. It can be run as an apply posthook (resulting in near-instantaneous “push” emails), or periodically from Cron, or occasionally by hand, whatever seems most convenient. You can get it by darcs at http://antti-juhani.kaijanaho.fi/darcs/darcs-monitor/ (darcsweb available), or as a tarball at http://antti-juhani.kaijanaho.fi/software/dist/. It depends on mtl and HaXml and is written in Haskell, naturally. It has been tested only with GHC 6.6 so far. For installation and usage instructions, refer to the README. Please note that this software is very new and thus can be buggy. As with any email-sending software, bugs can result in major annoyance; user caution is warranted.

7 February 2007

Antti-Juhani Kaijanaho: More FINEID

It appears the freezing was caused by an incorrect setting in the opensc configuration; to make matters worse, the documentation of that option is wrong (#410024)! However, now I am able to log in with no problems – if you don’t count the fact that I’m prompted for the wrong PIN in addition to the right PIN (#410025).

6 February 2007

Antti-Juhani Kaijanaho: FINEID not quite there with Debian

I got myself a new identity card. All new Finnish national personal identity cards are FINEID cards; that is, they are contact smart cards containing two secret keys, one for common authentication and the other for nonrepudiable digital signatures backed by law. In theory I should be able to use it for authenticating myself to my bank web service, and the Electronic Post Office. I thought this was cool so I got myself the hardware (SCR331) for reading these cards. The beginning was easy. I needed to install openct, opensc and mozilla-opensc. The first two worked out of the box; the last one wouldn’t work with Iceweasel without manual prodding (#409946). I was eventually able to log in to the FINEID test site, but signing stuff does not work (#409948) which means that I am not able to log in to my bank. The post office does not let me log in either, but the cause is unknown (they do not provide any diagnostic messages). And now mozilla-opensc is causing Iceweasel to freeze in some situations (#409963). I already lost one draft of this post because of that. Edit: Now I was able to log in to Post Office, after I reinstalled mozilla-opensc. Weird.

8 January 2007

Antti-Juhani Kaijanaho: Introducing Quadmachine II

Quadmachine is a virtual instruction set architecture, designed mainly as a target for simple educational compilers. It has the following noteworthy features: All of these, except for the preposterously large register file, are more or less realistic for a 64-bit RISC design. The size of the register file is intended to trivialize register allocation in compilers. This is the second Quadmachine design. Main differences from the previous design are a move to a load-store RISC architecture and the upgrade of the word size to 64 bits. There is a software realization of the Quadmachine architecture, with a graphical debug console. It is written in Java for portability; speed was not an implementation concern. Read more

5 January 2007

Antti-Juhani Kaijanaho: .

You scored as Neither. You think neither like a man nor like a woman. What you are you may decide for yourself. Most people will consider you strange, alien, weird or funny. You are probably quite interesting.
Neither
75%
Male
43%
Female
43%
Either
36%
Should you be MALE or FEMALE?*
created with QuizFarm.com

27 December 2006

Antti-Juhani Kaijanaho: Hmm

Somebody intends to challenge DJB’s license for qmail. Most likely we don’t hear from them again, but there is a small chance something might happen. It’ll be interesting to see what happens next.

13 December 2006

Lars Wirzenius: Enemies of Carlotta: EoC security problem fixed

My face is covered in egg. Antti-Juhani Kaijanaho found a security problem in EoC, both the 1.0.3 and the 1.2.3 versions. The problem is that EoC did not quote shell arguments properly. I have fixed the problem in 1.2.4, which contains no other changes relative to 1.2.3. This problem has the code CVE-2006-5875. You can find the 1.2.4 version from the EoC website: http://liw.iki.fi/liw/eoc/ and I have also uploaded it to Debian's unstable. Debian's stable contains 1.0.3, and I have prepared a patch for that. It is actually essentially the same patch as was used to create 1.2.4. The Debian security team has uploaded a fixed version of the 1.0.3 package to security.debian.org. I've attached it to this message in case anyone not running Debian wants to stay with 1.0.3, but I won't be releasing a 1.0.4 unless someone really needs it (if you do, please tell me immediately). For risk assessment: I was unable to come up with an exploit. Doing so would require getting a certain kind of construct through the SMTP level to EoC, and I wasn't able to make that happen, but I would not rely on it being impossible. Therefore, please upgrade immediately. I apologize for this problem. It was amateurish to let the problematic code into a released version of the program, I knew better than do that.

11 December 2006

Antti-Juhani Kaijanaho: yet another personality test

Saw this on Baen’s Bar :)
Loser- INTP
46% Extraversion, 53% Intuition, 66% Thinking, 33% Judging
Talked to another human being lately? I’m serious. You value knowledge above ALL else. You love new ideas, and become very excited over abstractions and theories. The fact that nobody else cares still hasn’t become apparent to you… Nerd’s a great word to describe you, and I seriously couldn’t care less about the different definitions of the word and why you’re actually more of a geek than a nerd. Don’t pretend you weren’t thinking that. You want every single miniscule fact and theory to be presented correctly. Critical? Sarcastic? Cynical? Pessimistic? Just a few words to describe you when you’re at your very best…*cough* Sorry, I mean worst. Picking up the dudes or dudettes isn’t something you find easy, but don’t worry too much about it. You can blame it on your personality type now. On top of all this, you’re shy. Nice one, wench. No wonder you’re on OKCupid!
Now, quickly go and delete everything about “theoretical questions” from your profile page. As long as nobody tries to start a conversation with you, just MAYBE you’ll now have a chance of picking up a date. But don’t get your hopes up. I am interested though. If a tree fell over in a forest, would it really make a sound? ***************** If you want to learn more about your personality type in a slightly less negative way, check out this. ***************** The other personality types are as follows… Loner - Introverted Sensing Feeling Perceiving
Pushover - Introverted Sensing Feeling Judging
Criminal - Introverted Sensing Thinking Perceiving
Borefest - Introverted Sensing Thinking Judging
Almost Perfect - Introverted iNtuitive Feeling Perceiving
Freak - Introverted iNtuitive Feeling Judging
Crackpot - Introverted iNtuitive Thinking Judging
Clown - Extraverted Sensing Feeling Perceiving
Sap - Extraverted Sensing Feeling Judging
Commander - Extraverted Sensing Thinking Perceiving
Do Gooder - Extraverted Sensing Thinking Judging
Scumbag - Extraverted iNtuitive Feeling Perceiving
Busybody - Extraverted iNtuitive Feeling Judging
Prick - Extraverted iNtuitive Thinking Perceiving
Dictator - Extraverted iNtuitive Thinking Judging
My test tracked 4 variables How you compared to other people your age and gender:
free online dating free online dating
You scored higher than 53% on Extraversion
free online dating free online dating
You scored higher than 25% on Intuition
free online dating free online dating
You scored higher than 52% on Thinking
free online dating free online dating
You scored higher than 15% on Judging
Link: The Brutally Honest Personality Test written by UltimateMaster on OkCupid Free Online Dating, home of the The Dating Persona Test

28 November 2006

Antti-Juhani Kaijanaho: Upgrading WordPress the sane way

I finally got around to upgrading the bunch of WordPress blogs that I administer. I do not use the the Debian package, instead each blog is a separate copy, some with customizations. The official instructions make it a pain to upgrade customized WordPresses, so I have used another technique for a while now. This technique assumes a Unix-style system with all the usual goodies installed and command-line access, as well as Unix competence of the person performing this operation. I leave it to others to write step-by-step instructions for people lacking such competence (feel free to leave a comment). Step 0: Back up all your WordPress installations! Step 1: Make sure that you have a copy of the vanilla WordPress directory (unpacked from the zip or tarball and not changed afterward) for the version that you are currently running. I have it (in this case version 2.0.4) as the directory wp-2.0.4. Step 2: Download the new version, unpack it and rename the unpacked directory to include the version number (in this case, wp-2.0.5). Step 3: Create a patch file for this upgrade by running diff -Naur wp-2.0.4 wp-2.0.5 > ~/wp-2.0.4-2.0.5.diff. Step 4: Eyeball the patch to see if it looks sane. (I have on one occasion created a patch that deletes the whole WordPress installation. That is not fun. So check that the diff is sane!) Step 5: Apply the patch to your WordPress installation by changing to the WordPress installation’s directory and running patch -p1 -i ~/wp-2.0.4-2.0.5.diff. Step 6: If patch rejected some hunks, eyeball the .rej files to see if you need to manually merge the changes in. This should only happen if you have customized the installation. Step 7: Run the database upgrade script by going to the admin page and following the instructions. Step 8: Verify that it all works. *** It is also possible to manage the installations in darcs or in other version control systems. I haven’t bothered with that yet.

Next.

Previous.